<template>
	<view>
		<view class="takeapicture flex-col flex-col-center flex-row-center" @click="takeapicture">
			<image :src="url"></image>
			<view class="text">邀请他人注册请展示该二维码</view>
		</view>
	</view>
</template>

<script>
	import {
		baseUrl
	} from '../../common/config.js'
	import {
		parkingDataReporting
	} from '../../network/api.js'
	export default {
		data() {
			return {
				url: '',
				user_id:uni.getStorageSync('user_id')
			}
		},
		onLoad() {
			this.getList()
		},
		
		methods: {
			async getList() {
				var res = await parkingDataReporting({
					user_id: this.user_id,
				})
				console.log(res);
				if (res.code == 200) {
					this.url = res.data
				} else {
					uni.showToast({
						title: res.message,
						icon: 'none'
					})
				}

			},
		}
	}
</script>

<style lang="scss">
	page {
		background: #F8F9FB;
	}

	.popupBox {
		width: 686rpx;
		height: 684rpx;
		background: #FFFFFF;
		border-radius: 16rpx;
		margin-left: 32rpx;
		overflow: hidden;
		margin-bottom: 76rpx;
		padding: 0 34rpx;
	}

	.status {
		width: 750rpx;
		height: 100rpx;
		background: #FFFFFF;
		margin-top: 24rpx;
		justify-content: space-between;

		.left {
			height: 44rpx;
			font-size: 32rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: rgba(50, 50, 51, 0.7);
			line-height: 44rpx;
			margin: 28rpx 0 0 32rpx;
		}

		.right {
			margin-right: 32rpx;

			.one {
				width: 96rpx;
				height: 44rpx;
				font-size: 32rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: rgba(50, 50, 51, 0.5);
				line-height: 44rpx;

			}

			.two {
				height: 48rpx;
				font-size: 34rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #323233;
				line-height: 48rpx;
			}

			.image {
				width: 32rpx;
				height: 32rpx;
			}
		}
	}

	.takeapicture {
		width: 670rpx;
		height: 860rpx;
		background: #FFFFFF;
		border-radius: 18rpx;
		margin: 24rpx 0 0 40rpx;

		image {
			width: 640rpx;
			height: 640rpx;
		}

		.text {
			width: 456rpx;
			height: 44rpx;
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #9B9C9E;
			line-height: 44rpx;
			margin-top: 12rpx;
		}
	}
</style>